import App from './App'
import apiconfig from 'common/APIConfig.js'
import utils from 'common/Utils.js';
import './request/axiosConfig';
import store from './store/index.js';
import get from './request/get';
import post from './request/post';
import put from './request/put';

// #ifndef VUE3
import Vue from 'vue'
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
// #ifdef MP-WEIXIN
import share from "./common/share.js";
Vue.mixin(share)
// #endif
import './uni.promisify.adaptor'

 

Vue.prototype.$config = apiconfig;
Vue.prototype.$get = get;
Vue.prototype.$post = post;
Vue.prototype.$put = put;
Vue.prototype.$store = store;
Vue.prototype.$utils = utils;
Vue.prototype.$Utils = utils;
Vue.prototype.$api = apiconfig;
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif